Skip to content

Dev - #20

Closed
cvraut wants to merge 27 commits into
mainfrom
dev
Closed

Dev#20
cvraut wants to merge 27 commits into
mainfrom
dev

Conversation

@cvraut

@cvraut cvraut commented Oct 14, 2025

Copy link
Copy Markdown
Owner

try new test suite from dev branch

Copilot AI and others added 6 commits October 14, 2025 13:44
Co-authored-by: cvraut <10603882+cvraut@users.noreply.github.com>
Co-authored-by: cvraut <10603882+cvraut@users.noreply.github.com>
…dency

Copilot/remove pkg resources dependency

merging into dev to allow for testing. Note, in the future PR's should be made to dev first. Branch rules disallow automated testing on branches other than dev and main to protect the webhook test urls.
…314 as other python versions to check against
@cvraut

cvraut commented Oct 14, 2025

Copy link
Copy Markdown
Owner Author

I think this last set of commits should fix everything with the auto-test env

after I land in boston I need to build the wheel, deploy to pypi, merge this PR, and close the issue.

@cvraut cvraut left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pytest.yml, pyproject.toml, and tox.ini changes are to support the recent actions upgrade while stilling maintaining tests on python 3.6

_config.py and _utilities.py both use metadata from importlib instead of pkg_resources to retreive version info. Note, importlib behavior changes in python 3.8, so behavior is wrapped in try-except with an alias to support older python versions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes package metadata retrieval by replacing the deprecated pkg_resources with importlib.metadata (and its backport for older Python versions). It also expands CI/CD testing coverage across multiple Python versions.

  • Replaced pkg_resources.get_distribution() with importlib.metadata.version() for retrieving package version
  • Added conditional import logic to support both Python >= 3.8 (built-in) and Python < 3.8 (backport package)
  • Enhanced CI/CD testing to include Python 3.6 (minimum supported), 3.9 (primary dev), and 3.14 (latest)

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
whecho/_utilities.py Migrated from pkg_resources to importlib.metadata with backward compatibility fallback
whecho/_config.py Migrated from pkg_resources to importlib.metadata with backward compatibility fallback
pyproject.toml Bumped version to 0.0.6 and added importlib-metadata as conditional dependency for Python < 3.8
tox.ini Updated test configuration to support multiple Python versions with isolated builds
.github/workflows/pytest.yml Expanded test matrix to include Python 3.6, 3.9, and 3.14 across different OS platforms

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cvraut

cvraut commented Mar 3, 2026

Copy link
Copy Markdown
Owner Author

This PR is super messy, gonna close this one and open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants